package com.javaclimb.music.service;

import com.javaclimb.music.domain.Consumer;

import java.util.List;

public interface ConsumerService {
    /**
     * 查询所有用户
     *
     * @return
     */
    public List<Consumer> selectAll();

    /**
     * 根据id删除用户
     *
     * @param id
     * @return
     */
    public int deleteUser(Integer id);

    /**
     * 根据名字模糊查询
     *
     * @param name
     * @return
     */
    public List<Consumer> selectName(String name);

    /**
     * 添加新用户
     *
     * @param consumer
     * @return
     */
    public int insertUser(Consumer consumer);

    /**
     * 修改
     *
     * @param consumer
     * @return
     */
    public int updateUser(Consumer consumer);
}
